package personal.vivian.groovy
//String path = this.getClassLoader().getResource("").getPath();

document=groovy.xml.DOMBuilder.parse(new FileReader("D:\\Users\\K0240010\\IdeaProjects\\shiro\\src\\main\\resource\\language.xml"))
rootElement=document.documentElement
use(groovy.xml.dom.DOMCategory){
    println("language and author")
    languages=rootElement.language
    languages.each {language->println("${language.'@name'} authord by ${language.author[0].text()}")}
}